#ifndef CITY_H
#define CITY_H
#include<QString>
#include<QDateTime>
#include<QTextStream>
#include<QStringList>
class City
{
    friend QTextStream& operator>>(QTextStream& in, City& cit);
    friend QTextStream& operator<<(QTextStream& out, City& cit);
public:
    City();
    City(QString name, QString country, int New, int now, int all, int cure,int dead, QDate day);
    City(const City& cit);

    City operator+(City& cit);
    City& operator+=(City& cit);

    QString getKey();
    QString get_name();
    QString get_country();
    int get_new();
    int get_now();
    int get_all();
    int get_cure();
    int get_dead();
    QDate get_day();

    void set_name(QString name);
    void set_country(QString country);
    void set_new(int New);
    void set_now(int now);
    void set_cure(int cure);
    void set_dead(int dead);
    void set_all(int all);
    void set_day(QDate day);
private:
    QString city_name;
    QString city_country;
    int city_new;
    int city_now;
    int city_all;
    int city_cure;
    int city_dead;
    QDate city_day;
};

QTextStream& operator>>(QTextStream& in, City& cit);
QTextStream& operator<<(QTextStream& out, City& cit);
#endif // CITY_H
